package com.kayt.cyberBar.cyber.business.dao;

import java.sql.SQLException;
import java.util.LinkedHashMap;
import java.util.List;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.cyber.business.entity.po.BCyberExtraFinance;

public interface ICyberExtraFinanceDao {

	public Long addFinance(BCyberExtraFinance finance) throws SQLException;

	public void updateFinance(BCyberExtraFinance finance) throws SQLException;

	public BCyberExtraFinance getFinanceById(String financeId);

	public BCyberExtraFinance getFinanceByCode(String financeCode) throws SQLException;

	public PageData<BCyberExtraFinance> getFinanceList(int pageNun, int pageSize, String hql, Object[] params, LinkedHashMap<String, String> orderMap)
			throws SQLException;

	public List getFinanceListByHql(int pageNum, int pageSize, String hql, Object[] params) throws SQLException;

	public boolean checkValidate(String name) throws SQLException;

	public void batchInsert(List<BCyberExtraFinance> itemList);

	public int deleteFinance(BCyberExtraFinance finance);

}
